import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

public class Main {
    static int get_count(String obj, String[] arr) {
        int count = 0;
        for (int i = 0; i < arr.length; i++) {
            if (obj.equals(arr[i]))
                count++;
        }
        return count;
    }

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        ArrayList<String> list = new ArrayList<>();

        //初始字符串保存在arr中
        String[] arr = sc.nextLine().split("");

        //字符串去重保存在list中
        for (int i = 0; i < arr.length; i++) {
            if (!list.contains(arr[i]))
                list.add(arr[i]);
        }

        for (int i = 0; i < list.size(); i++) {
            System.out.println(list.get(i) + ": " + get_count(list.get(i), arr));
        }
    }
}